package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 快递项目表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_delivery_item")
public class ShopDeliveryItem extends Model<ShopDeliveryItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建日期
     */
	private Date ctime;
    /**
     * 最后修改日期
     */
	private Date mtime;
    /**
     * 快递数量
     */
	@TableField("delivery_quantity")
	private Integer deliveryQuantity;
    /**
     * 商品链接路径
     */
	@TableField("html_path")
	private String htmlPath;
    /**
     * 商品名称
     */
	@TableField("sku_name")
	private String skuName;
    /**
     * 商品序列号
     */
	@TableField("sku_sn")
	private String skuSn;
    /**
     * 物流id
     */
	@TableField("shipping_id")
	private Integer shippingId;
    /**
     * 商品id
     */
	@TableField("sku_id")
	private Integer skuId;
	@TableField("reship_id")
	private Integer reshipId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public Integer getDeliveryQuantity() {
		return deliveryQuantity;
	}

	public void setDeliveryQuantity(Integer deliveryQuantity) {
		this.deliveryQuantity = deliveryQuantity;
	}

	public String getHtmlPath() {
		return htmlPath;
	}

	public void setHtmlPath(String htmlPath) {
		this.htmlPath = htmlPath;
	}

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public String getSkuSn() {
		return skuSn;
	}

	public void setSkuSn(String skuSn) {
		this.skuSn = skuSn;
	}

	public Integer getShippingId() {
		return shippingId;
	}

	public void setShippingId(Integer shippingId) {
		this.shippingId = shippingId;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	public Integer getReshipId() {
		return reshipId;
	}

	public void setReshipId(Integer reshipId) {
		this.reshipId = reshipId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopDeliveryItem{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", deliveryQuantity=" + deliveryQuantity +
			", htmlPath=" + htmlPath +
			", skuName=" + skuName +
			", skuSn=" + skuSn +
			", shippingId=" + shippingId +
			", skuId=" + skuId +
			", reshipId=" + reshipId +
			"}";
	}
}
